﻿
namespace Pixels.Core.Extentions
{
    using System.Collections.Generic;
    using Pixels.ContentTypeItems;
    using Pixels.ContentTypes;

    public static class ContentTypeExtentions
    {
        public static ICollection<IContentTypeItem> FetchContentItems(this IContentType ContentType)
        {
            return ContentTypeItemAdapter.GetInstance().ContentItemsFetchByContentTypeID(ContentType.ContentTypeID);
        }
        public static IContentType FetchBaseContentType(this IContentType BaseContentType)
        {
            return ContentTypeAdapter.GetInstance().ContentTypeFetch(BaseContentType.BaseContentTypeID.Value);
        }      
    }
}
